home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / archie38_1.lha / archie-1.4 / perrno.h < prev    next >
C/C++ Source or Header  |  1995-01-04  |  5KB  |  124 lines

  1. /*
  2.  * Copyright (c) 1989, 1990 by the University of Washington
  3.  *
  4.  * For copying and distribution information, please see the file
  5.  * <copyright.h>.
  6.  */
  7.  
  8. #include "copyright.h"
  9.  
  10. /* This file and perrmesg.c should be updated simultaneously.  */
  11.  
  12. /*
  13.  * perrno.h - definitions for perrno
  14.  *
  15.  * This file contains the declarations and defintions of of the external
  16.  * error values in which errors are returned by the pfs and psrv
  17.  * libraries.
  18.  */
  19.  
  20. #define        P_ERR_STRING_SZ 100     /* Size of error string        */
  21.  
  22. extern int    perrno;
  23. extern char    p_err_string[];
  24. extern char    *p_err_text[];
  25.  
  26. extern int    pwarn;
  27. extern char    p_warn_string[];
  28. extern char    *p_warn_text[];
  29.  
  30. /* Error codes returned or found in verrno */
  31.  
  32. #ifndef PSUCCESS
  33. #define    PSUCCESS        0
  34. #endif
  35.  
  36. /* dirsend (perrno) */
  37. #define DIRSEND_PORT_UNKN    1    /* DIRSRV UDP port unknown      */
  38. #define DIRSEND_UDP_CANT    2    /* Can't open local UDP port    */
  39. #define DIRSEND_BAD_HOSTNAME    3    /* Can't resolve hostname       */
  40. #define DIRSEND_NOT_ALL_SENT    4    /* Didn't send entire message   */
  41. #define DIRSEND_SELECT_FAILED    5    /* Select failed            */
  42. #define DIRSEND_BAD_RECV    6    /* Recvfrom failed             */
  43.  
  44. /* reply */
  45. #define REPLY_NOTSENT        11    /* Reply: sendto failed            */
  46.  
  47. /* vl_insert */
  48. #define VL_INSERT_ALREADY_THERE    21    /* Link already exists            */
  49. #define VL_INSERT_CONFLICT    22    /* Link exists with same name   */
  50.  
  51. /* ul_insert */
  52. #define UL_INSERT_ALREADY_THERE 25    /* Link already exists        */
  53. #define UL_INSERT_SUPERSEDING   26    /* Replacing existing link    */
  54. #define UL_INSERT_POS_NOTFOUND  27    /* Prv entry not in dir->ulinks */
  55.  
  56. /* rd_vdir */
  57. #define RVD_DIR_NOT_THERE    41    /* Temporary NOT_FOUND            */
  58. #define RVD_NO_CLOSED_NS    42    /* Namespace not closed w/ object:: */
  59. #define RVD_NO_NS_ALIAS        43    /* No alias for namespace NS#:      */
  60. #define RVD_NS_NOT_FOUND    44    /* Specified namespace not found    */
  61.  
  62. /* pfs_access */
  63. #define PFSA_AM_NOT_SUPPORTED   51      /* Access method not supported  */
  64.  
  65. /* pmap_cache */
  66. #define PMC_DELETE_ON_CLOSE     55    /* Delete cached copy on close   */
  67. #define PMC_RETRIEVE_FAILED     56      /* Unable to retrieve file       */
  68.  
  69. /* mk_vdir */
  70. /* #define MKVD_ALREADY_EXISTS     61    /* Directory already exists      */
  71. /* #define MKVD_NAME_CONFLICT    62    /* Link with name already exists */
  72.  
  73. /* vfsetenv */
  74. #define VFSN_NOT_A_VS        65    /* Not a virtual system          */
  75. #define VFSN_CANT_FIND_DIR    66    /* Not a virtual system          */
  76.  
  77. /* add_vlink */
  78. /* #define ADDVL_ALREADY_EXISTS    71    /* Directory already exists      */
  79. /* #define ADDVL_NAME_CONFLICT    72    /* Link with name already exists */
  80.  
  81. /* Local error codes on server */
  82.  
  83. /* dsrdir */
  84. #define DSRDIR_NOT_A_DIRECTORY 111    /* Not a directory name        */
  85. /* dsrfinfo */
  86. #define DSRFINFO_NOT_A_FILE    121      /* Object not found             */
  87. #define DSRFINFO_FORWARDED     122      /* Object has moved             */
  88.  
  89. /* Error codes that may be returned by various procedures               */
  90. #define PFS_FILE_NOT_FOUND     230      /* File not found               */
  91. #define PFS_DIR_NOT_FOUND      231      /* Directory in path not found  */
  92. #define PFS_SYMLINK_DEPTH      232    /* Max sym-link depth exceeded  */
  93. #define PFS_ENV_NOT_INITIALIZED    233    /* Can't read environment    */
  94. #define PFS_EXT_USED_AS_DIR    234    /* Can't use externals as dirs  */
  95. #define PFS_MAX_FWD_DEPTH      235    /* Exceeded max forward depth   */
  96.  
  97. /* Error codes returned by directory server                    */
  98. /* some of these duplicate errors from individual routines     */
  99. /* some of those error codes should be eliminated              */
  100. #define DIRSRV_AUTHENT_REQ     242      /* Authentication required       */
  101. #define DIRSRV_NOT_AUTHORIZED  243      /* Not authorized                */
  102. #define DIRSRV_NOT_FOUND       244      /* Not found                     */
  103. #define DIRSRV_BAD_VERS        245
  104. #define DIRSRV_NOT_DIRECTORY   246
  105. #define DIRSRV_ALREADY_EXISTS  247    /* Identical link already exists */
  106. #define DIRSRV_NAME_CONFLICT   248    /* Link with name already exists */
  107.  
  108. #define DIRSRV_UNIMPLEMENTED   251      /* Unimplemented command         */
  109. #define DIRSRV_BAD_FORMAT      252
  110. #define DIRSRV_ERROR           253
  111. #define DIRSRV_SERVER_FAILED   254      /* Unspecified server failure    */
  112.  
  113. #ifndef PFAILURE
  114. #define    PFAILURE            255
  115. #endif
  116.  
  117. /* Warning codes */
  118.  
  119. #define PNOWARN             0    /* No warning indicated         */
  120. #define PWARN_OUT_OF_DATE     1    /* Software is out of date       */
  121. #define PWARN_MSG_FROM_SERVER     2      /* Warning in p_warn_string      */
  122. #define PWARN_UNRECOGNIZED_RESP  3    /* Unrecognized line in response */
  123. #define PWARNING           255    /* Warning in p_warn_string      */
  124.